home *** CD-ROM | disk | FTP | other *** search
/ PCBoard 15.1 Demo / PCBoard v15.1 DEMO - Clark Dev. Co (1994) - Disk 1 of 1.imd / PCBDISK.EXE / HELP / HLPSRCH < prev    next >
Encoding:
Text File  |  1994-02-14  |  11.6 KB  |  247 lines

  1. @X00
  2. @X38┌────────────────────────────────────────────────────────────────────────────@X3B┐@X0B
  3. @X38│ @X3EHelp: @X3FSearching For Text                                                   @X3B│@X0B
  4. @X38└@X3B────────────────────────────────────────────────────────────────────────────┘@X03
  5.  
  6.       There are numerous places where PCBoard will ask you for some kind
  7.       of search criteria for the text you want to scan.  In those areas
  8.       you can simply type in a word or phrase or you may create much
  9.       more complex searches by using boolean logic symbols in your
  10.       request.
  11.  
  12.       The rules below apply at any prompt given where PCBoard wants you
  13.       to tell it what to scan for so the following rules can be used
  14.       whether you are scanning through the message base, the download
  15.       directories, the users file or the caller logs.
  16.  
  17.       The prompt that you will usually see will resemble the follwoing:
  18. @X0E
  19.           Enter the Text to Scan for (Enter)=none?
  20. @X03
  21.       To begin with, you will be shown how to do some simple searches.
  22.       From there, you will be shown how to do some more complex searches
  23.       that involve Boolean operands.
  24. @X0F
  25.    Simple Searches : Single Word
  26. @X03
  27.       The simplest search that you can perform is the single word
  28.       search.  You enter the word to search for and PCBoard will search
  29.       the criteria you have specified for that word.  For example, if
  30.       you are using the Z command then the file directories will be
  31.       searched.  If you are using the TS command then the message base
  32.       will be searched.
  33.  
  34.       For example, you may wish to search all messages in the current
  35.       conference for the word monitor.  You would then type the
  36.       following at a conference command prompt:
  37. @X07
  38.           TS
  39. @X0E
  40.           Enter the Text to Scan for (Enter)=none? @X07monitor
  41. @X0A          Msg # to Begin Search from (1052-3904)?@X07 1
  42. @X03
  43.       At this point, you would see that the search begins for the word
  44.       monitor.  PCBoard will display any message that has the word
  45.       monitor in it.  While searching, PCBoard does not pay attention to
  46.       the case of the word so it can be either upper or lower case and
  47.       it will still be found.
  48. @X0F
  49.    Simple Seaches : Phrase
  50. @X03
  51.       Taking the single word approach one step further, you can search
  52.       for a phrase that consists of one or more words.  If you found
  53.       that searching for monitor was pulling up to many matches and
  54.       consequently was not being effective, you may decide to search for
  55.       something more specific like vga monitor instead.  This may help
  56.       reduce the number of matches and help you find the messages you
  57.       are after.  This time you would type the following at the
  58.       conference command prompt:
  59. @X07
  60.           TS
  61. @X0E
  62.           Enter the Text to Scan for (Enter)=none? @X07VGA monitor
  63. @X0A          Msg # to Begin Search from (1052-3904)? @X071
  64. @X03
  65.       At this point the search will begin again.  However, this time,
  66.       only messages which have the word VGA immediately followed by the
  67.       word monitor will be displayed.  When the message is displayed to
  68.       you, PCBoard will highlight the match if your graphics mode allows
  69.       so that you can see where the match occurs.
  70. @X0F
  71. Complex (Boolean) Searches
  72. @X03
  73.       Boolean operands allow you to perform more complex searches than
  74.       you would be able to perform searching for a word or phrase. With
  75.       Boolean operators you can tell PCBoard to display a match only if
  76.       it meets certain conditions that you specify.
  77.  
  78.       An expression is made up of an operator which acts on one or more
  79.       operands.  With text searches, your operators are the Boolean
  80.       operators.  The operands are the word or phrases you are searching
  81.       for.  Do not over-burden yourself trying to remember the
  82.       difference between operands and operators as you will find that
  83.       the examples will help you better understand the concept of
  84.       Boolean text searching.  The following discusses each of the
  85.       Boolean operators.
  86. @X0F
  87.    & - The And Operator
  88. @X03
  89.       The Boolean And operator enables you to search in disjointed mode.
  90.       In other words, both operands must exist in the target (message,
  91.       file description, etc.) but they do not have to be in consecutive
  92.       order.  To help illustrate this let's say that you attempt to
  93.       search for text editors that may exist on the system.
  94.  
  95.       Because you have no idea what the filename is, you decide to use
  96.       the Z user command to search for text in the file directories.
  97.       When prompted for the text to search for, you enter @X07text editor@X03
  98.       because that is what you are looking for.  From there you begin
  99.       the search, and you pull up a few programs that may interest you.
  100.  
  101.       The problem with this type of search is that you may have missed
  102.       some files because you told PCBoard to find anything that had the
  103.       text editor phrase in the description.  What you discovered later
  104.       when viewing file directories is the following file description:
  105.  
  106.   @X0BTXED100.ZIP    @X0E168046  @X0A12-28-93  @X0BTexEdit v1.00 -- Utility you can use to
  107. @X07                                   edit any text file.  Supports VGA text
  108.                                    mode.  Includes mouse support.
  109. @X03
  110.       Obviously, this looks like a file that you would be interested in.
  111.       Why did this description not show in your previous search? Quite
  112.       simply, nowhere in the description is the phrase text editor
  113.       contained.  Definitely your search is not catching all of the
  114.       files you want to catch.
  115.  
  116.       This is not only where the Boolean And operator becomes useful but
  117.       also where it makes sense.  If you had to sum up what you were
  118.       looking for, you may say any file that can @X0Bedit text@X03.  The
  119.       highlighted words are the key.  You want to find any description
  120.       which has both the word text and the word edit somewhere in the
  121.       description.  You do not know if the description will say
  122.       something like "A utility to edit text" or if it will say "a
  123.       wonderful text editor".  Therefore you could enter the following
  124.       expression to search for:
  125. @X0E
  126.           TEXT & EDIT
  127. @X03
  128.       The & in the search string represents the Boolean And operator. If
  129.       your translate the & into the actual word and it makes even more
  130.       sense.  That would mean that you are searching for text and edit
  131.       to be in the same description.  It does not matter in what order,
  132.       just simply that they occur in the description to become a match.
  133.  
  134.       You can have as many Boolean operands as you wish in your search
  135.       string.  For example, you could search for the following:
  136. @X0E
  137.           DISK & FORMAT & FLOPPY
  138. @X03
  139.       This would mean that the words DISK, FORMAT, and FLOPPY must all
  140.       occur in order for a record to match.
  141. @X0F
  142.    | - The Or Operator
  143. @X03
  144.       Like the Boolean And operator, this operator enables you to search
  145.       in disjointed mode.  With this operator only one of words or
  146.       phrases need to be in the target (message, file description, etc.)
  147.       to be considered a match.
  148.  
  149.       As an example, you may wish to search the message bases using the
  150.       TS user command for any message that talks about hard drives.  You
  151.       remember that some people call them hard drives and other may call
  152.       them hard disks.  In a case like this, you would use the Or
  153.       operator to find any message that matches either phrase.  You
  154.       would type the following at the Enter the Text to Scan for
  155.       (Enter)=none prompt:
  156. @X0E
  157.           HARD DISK | HARD DRIVE
  158. @X03
  159.       Any message that contains either the phrase hard disk or the
  160.       phrase hard drive would be displayed to you.
  161. @X0F
  162.    ! - The Not Operator
  163. @X03
  164.       Sometimes you may not want to display all matching records.
  165.       Instead, you may want to search all records which do not match the
  166.       text you enter to search for.  This is precisely the user of the
  167.       Boolean not operator.
  168.  
  169.       For example, you may want to search a directory that contains a
  170.       bunch of GIF graphic images.  All of the descriptions in this
  171.       directory contain the resolution of the file.  You decide that you
  172.       do not wish to see the description of any pictures which are
  173.       320x200.  If this was the case, you would type the following at
  174.       the Enter the Text to Scan for prompt:
  175. @X0E
  176.           ! 320x200
  177. @X03
  178.       Any description which contained the phrase 320x200 would not be
  179.       displayed to you because of the Boolean Not Operator ( ! ).
  180.       Continuing on with the GIF examples, let's assume that you want to
  181.       see all pictures on the system that have a resolution of 1024x768
  182.       but you do not want to see any files that have swim in the
  183.       description.  You could enter the following:
  184. @X0E
  185.           1024x768 &! SWIM
  186. @X03
  187.       If you read that out in English it says 1024x768 and not SWIM.
  188.       This would display all file descriptions that have a 1024x768 in
  189.       the description (denoting the resolution of the picture) and that
  190.       do not have the word SWIM anywhere in the description.
  191. @X0F
  192. Using Parentheses To Group
  193. @X03
  194.       Remember in mathematics how you used parentheses in your searches
  195.       to not only make your searches clearer and easier to understand
  196.       but more importantly to control the order of operations to suit
  197.       your need?  With Boolean operators you can do the exact same
  198.       thing.  If you take the example that illustrates using the And
  199.       Boolean operator one step further you can easily see how
  200.       parentheses help group things together.
  201.  
  202.       If you recall, you were using the And operator to search for any
  203.       description that contained both the words TEXT and EDIT.  What
  204.       happens if someone chooses to use the word ASCII instead of TEXT
  205.       when they enter their description?  To help you find this
  206.       description, you could use parentheses to group items together.
  207.       This may result in the following search string.
  208. @X0E
  209.           EDIT & (TEXT | ASCII)
  210. @X03
  211.       This will tell PCBoard to find any description that contains the
  212.       word edit, and either the word text or the word ASCII.  If you
  213.       did not use the parentheses then PCBoard would evaluate from the
  214.       left to the right.  This means that it would only display files
  215.       that contained both the words EDIT and TEXT or the word ASCII.
  216.  
  217.       While it appears to be a very subtle difference, it could make or
  218.       break your search.  Remember the easiest way to do Boolean
  219.       searching is to read out the search in English.  If you look at
  220.       the previous example which uses parentheses you could read it as
  221.       follows:
  222. @X0E
  223.           EDIT and either Text or ASCII.
  224. @X0F
  225.    Including The Boolean Characters In Your Search
  226. @X03
  227.       If you need to include any of the following characters in your
  228.       search then you will need to use quote marks to use them properly:
  229. @X0B
  230.           &
  231.           |
  232.           !
  233.           (
  234.           )
  235.           [space]
  236. @X03
  237.       Obviously these characters all have special meanings when involved
  238.       in a search so you need some way of specifying them. For example,
  239.       you may want to search for the phrase SMITH & JONES.  If you type
  240.       that in as-is, the search would turn up anything with the word
  241.       SMITH and the word JONES.  What you would do in this case is to
  242.       simply surround then entire search phrase with quote marks as
  243.       illustrated in the following:
  244. @X0E
  245.           "SMITH & JONES"
  246. @XFF
  247.